package com.topfinance.cnaps2.ebo;

// Generated 2009-6-19 13:56:29 by Hibernate Tools 3.2.2.GA

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.topfinance.payment.ebo.TCfgNodeEbo;
import com.topfinance.payment.ebo.TCfgProtocolEbo;

/**
 * SysDepartment generated by hbm2java
 */
@Entity
@Table(name = "T_CONF_INPORT")
public class ConfInPortEbo implements java.io.Serializable {

	//oid	主键	integer
    private Integer uid;

	//name	方向	varchar(40)
    private String name;

	//direction	方向	char(1)
    private String direction;

	//type	类型	char(1)
//	private String type;
	
	//trans_id	通讯协议	integer
	private ConfTransportEbo transEbo;

	//prtcl_id	业务协议	integer
	private TCfgProtocolEbo prtclEbo;

	//node_id	关联系统	integer
	private TCfgNodeEbo nodeEbo;

	//appendix	通讯附属设置	varchar2(200)
	//private String appendix;

	//url	URL 	varchar2(200)
	private String url;

	//ack_port_id	响应确认端口	integer	ackOPID
	private ConfOutPortEbo ackEbo;
	
	@Id
	@Column(name = "OID", unique = true, nullable = false)
	@SequenceGenerator(name = "CONF_INPORT_GEN", sequenceName = "S_CONF_INPORT")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CONF_INPORT_GEN")
    public Integer getUid() {
        return this.uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "TRANS_ID")
    public ConfTransportEbo getTransEbo() {
        return this.transEbo;
    }
	public void setTransEbo(ConfTransportEbo transEbo) {
		this.transEbo = transEbo;
	}

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "PRTCL_ID")
    public TCfgProtocolEbo getPrtclEbo() {
        return this.prtclEbo;
    }
	public void setPrtclEbo(TCfgProtocolEbo prtclEbo) {
		this.prtclEbo = prtclEbo;
	}    

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "NODE_ID")
    public TCfgNodeEbo getNodeEbo() {
        return this.nodeEbo;
    }
	public void setNodeEbo(TCfgNodeEbo nodeEbo) {
		this.nodeEbo = nodeEbo;
	}

	
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "ack_port_id")
    public ConfOutPortEbo getAckEbo() {
		return ackEbo;
	}
	public void setAckEbo(ConfOutPortEbo ackEbo) {
		this.ackEbo = ackEbo;
	}

//	@Column(name = "type")
//    public String getType() {
//        return this.type;
//    }
//    public void setType(String type) {
//        this.type = type;
//    }
    
    @Column(name = "name")
    public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "direction")
    public String getDirection() {
        return this.direction;
    }
    public void setDirection(String direction) {
        this.direction = direction;
    }
    
//    @Column(name = "appendix")
//	public String getAppendix() {
//		return appendix;
//	}
//	public void setAppendix(String appendix) {
//		this.appendix = appendix;
//	}   
	
    @Column(name = "url")
	public String getURL() {
		return url;
	}
	public void setURL(String url) {
		this.url = url;
	}       
}
